package com.ohs.service;

import com.ohs.pojo.User;
import com.ohs.utils.JsonResult;

import javax.servlet.http.HttpSession;
import java.util.Map;

public interface IUserService {

    //测试
    User findOne();

    //检查用户名是否可用
    Map<String, Object> checkRegisterName(String username);

    //注册
    JsonResult doRegister(User user, String confirmPwd);

    //检查用户名是否可用
    JsonResult checkLoginName(String username);

    //登录
    JsonResult doLogin(String username, String password, HttpSession session);
}
